<?php
/*由bean脚本生成 powerBy--joe*/
namespace app\common\model;

use app\common\bean\ContentBean;

class ContentModel extends BaseModel
{
	protected $table = 'content';
    protected $append = ['domain_pic','domain_icon'];
	/**
	* @return ContentModel
	*/
	static function getInstance(){
		return parent::getInstance();
	}
    public function getDomainPicAttr($value, $data){
        $imgList = $imgList = $this->getImgList($data[ContentBean::$pic]);
        return $this->domainImgList($imgList);
    }
    public function getDomainIconAttr($value, $data){
        $imgList = $imgList = $this->getImgList($data[ContentBean::$icon]);
        return $this->domainImgList($imgList);
    }
}
